<template>
  <div class="components-container">
    <div v-for="(item, key) in props.components" :key="key">
      <Image v-if="item.type === 'image'" :props="item" />
    </div>
  </div>
</template>
<script setup lang="ts">
import { defineComponent, defineProps } from "vue";
import Image from "./Image/index.vue";
defineComponent({
  components: {
    Image,
  },
});
const props = defineProps({
  components: Object,
});
</script>
